// Extracted from home/templates/home/home.html
// Simple animation and UI hooks for the home page
document.addEventListener('DOMContentLoaded', function() {
  // 为功能卡片添加延迟动画
  const featureCards = document.querySelectorAll('.feature-card');
  featureCards.forEach((card, index) => {
    card.style.animationDelay = `${index * 0.2}s`;
    card.classList.add('fade-in');
  });

  // 为视频卡片添加延迟动画
  const videoCards = document.querySelectorAll('.video-card');
  videoCards.forEach((card, index) => {
    card.style.animationDelay = `${index * 0.1}s`;
    card.classList.add('fade-in');
  });

  // Reveal hero elements
  document.querySelectorAll('.fade-in').forEach((el, i) => {
    setTimeout(() => el.classList.add('visible'), 120 * i);
  });

  console.log('home.js loaded');
});
